package com.sun.spring5.annotations;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

public class Car implements InitializingBean, DisposableBean {
    public Car() {
    }

    @Override
    public void destroy() throws Exception {
        System.out.println("car的销毁方法");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("car的初始化方法");
    }
}
